require.config({
	paths: {
		"jquery" : "jquery-1.11.3",
		"common" : "common",
		"cookie" : "cookie"
	}
});


require(["jquery","common","cookie"],function($,common,cookie){
	$(".header").load("header.html",function(){common.fn();});
	$(".footer").load("footer.html",function(){common.fn();});
	$(".side").load("side.html",function(){common.fn();});
	
	/*改变商品边框颜色*/
	$(".gl").each(function(){
		$(this).mouseover(function(){
			$(this).css("border-color","#F70800");
		});
		$(this).mouseout(function(){
			$(this).css("border-color","#ddd");
		});
	})
	
	bannerListFn(
		$(".banner"),
		$(".num"),
		$(".btnL"),
		$(".btnR"),
		3000,
		true
	);
});	